﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
//using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DDP_TestLink_Helper
{
    public partial class frmConverter : Form
    {
        public frmConverter()
        {
            InitializeComponent();
        }

        private void btnBrowseSource_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofdSource = new OpenFileDialog();
            ofdSource.Filter = "Excel 2007 files|*.xlsx";
            ofdSource.Title = "Select Source Excel File";
            if (ofdSource.ShowDialog() == DialogResult.OK)
            {
                // Assign the file path to the txtSource Text property.
                txtSourcePath.Text = ofdSource.FileName;
            }
        }

        private void btnBrowseTarget_Click(object sender, EventArgs e)
        {
            SaveFileDialog sfdTarget = new SaveFileDialog();
            sfdTarget.Filter = "TestLink XML | *.xml";
            sfdTarget.Title = "Save TestLink XML File";
            sfdTarget.ShowDialog();
            txtTargetPath.Text = sfdTarget.FileName;
        }

        private void convertIt(string source, string target)
        {

        }

        private void btnConverter_Click(object sender, EventArgs e)
        {
            convertIt(txtSourcePath.Text, txtTargetPath.Text);
        }

        

    }
}
